/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.audit.approval;

import com.koron.audit.domain.Audit;

import java.util.List;

public interface AfterApprovalService {
	/**
	 * 新增、修改流程审批通过之后业务处理
	 * @param audit		流程对象
	 */
	void editApproval(Audit audit);
	/**
	 * 废弃操作审批通过之后业务处理
	 * @param audit		
	 */
	void discardApproval(Audit audit);
	/**
	 * 流程废弃之后业务处理
	 * @param audit
	 */
	void processDiscard(Audit audit);

	/**
	 * 流程驳回的操作
	 * @param audit
	 * @param userIdList 驳回节点的审批人
	 */
	void reject(Audit audit, List<String> userIdList);

	/**
	 * 流程提交成功的操作
	 * @param operation 2转办 32通过
	 * @param audit
	 */
	void passApproval(Integer operation, Audit audit);
}
